Skip to content

docs: post-v1 accuracy and coverage update#3

Merged
flaglint merged 1 commit into
mainfrom
docs/post-v1-updates
Jul 1, 2026
Merged

docs: post-v1 accuracy and coverage update#3
flaglint merged 1 commit into
mainfrom
docs/post-v1-updates

Conversation

@Krishan27

@Krishan27 Krishan27 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • New pages: flaglint init and flaglint completion — both commands shipped in v1.1.0 but had no documentation
  • Sidebar: added init (before audit) and completion (after exit-codes) entries
  • Accuracy fixes: React SDK detection rows in supported-scope.md updated to Yes (hooks/HOC/provider now detected); wrappers object form added to configuration.md
  • Changelog: v1.1.0 block with 8 entries covering PRs #194–#200
  • Global flags: --quiet / --verbose added to options tables on all four command pages
  • Quickstart: flaglint init added as step 0

Test plan

  • npm run build passes (66 pages, 0 errors — verified locally)
  • New init and completion pages render correctly in sidebar
  • React SDK rows in supported-scope show "Yes"
  • Wrappers object form example renders in configuration page
  • v1.1.0 changelog block appears at top of changelog
  • --quiet / --verbose appear in options tables on scan, audit, migrate, validate
  • Quickstart step 0 links correctly to init page

Summary by CodeRabbit

  • New Features

    • Added init and completion commands to the CLI docs and navigation.
    • Expanded quickstart with an optional config scaffolding step.
  • Bug Fixes

    • Added clearer validation guidance for supported providers.
    • Improved glob matching behavior for exclusions.
    • Refined React SDK detection and reporting for manual review.
  • Documentation

    • Updated CLI option docs with --quiet and --verbose.
    • Added detailed configuration and supported-scope guidance.

New pages:
- docs/cli/init.md — flaglint init command reference
- docs/cli/completion.md — flaglint completion command reference

Sidebar:
- astro.config.mjs: add init (before audit) and completion (after exit-codes) to CLI section

Accuracy fixes:
- supported-scope.md: React SDK hooks/HOC/provider now detected (was 'No')
  Add React SDK detection section with import provenance examples
- configuration.md: document wrappers object form {import, function, flagKeyArgument}
  with field table and false-positive prevention explanation

Changelog:
- changelog.md: add v1.1.0 block covering PRs #194-#200
  (React SDK detection, wrapper v2, init, completion, --quiet/--verbose,
   action version input, provider guard, micromatch)

Global flags on all command pages:
- scan.md, audit.md, migrate.md, validate.md: add --quiet/-q and --verbose rows

Quickstart:
- quickstart.md: add step 0 for flaglint init before step 1 (audit)

Signed-off-by: Krishan Kant Sharma <krishansharma0327@gmail.com>
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Documentation-only changes to the Starlight docs site: added new CLI pages for init and completion, updated sidebar navigation, documented new --quiet/--verbose flags across audit, migrate, scan, and validate pages, added wrapper object-form configuration docs, a quickstart scaffold step, a 1.1.0 changelog entry, and expanded React SDK detection scope documentation.

Changes

Documentation Updates

Layer / File(s) Summary
New init command documentation and sidebar entry
src/content/docs/docs/cli/init.md, astro.config.mjs
Adds a full flaglint init reference page (usage, options, config template, precedence, exit codes, examples, feedback links) and a sidebar entry.
New completion command documentation and sidebar entry
src/content/docs/docs/cli/completion.md, astro.config.mjs
Adds a full flaglint completion reference page (supported shells, install steps, completion coverage, examples, exit codes) and a sidebar entry.
Quiet and verbose flag documentation across CLI pages
src/content/docs/docs/cli/audit.md, migrate.md, scan.md, validate.md
Documents new --quiet/-q and --verbose flags and updates lastUpdated dates on four existing CLI pages.
Wrapper detection v2 configuration documentation
src/content/docs/docs/cli/configuration.md
Updates the wrappers/outputDir field descriptions and adds a section on string vs object wrapper forms with import/function/flagKeyArgument matching.
Quickstart scaffold step and changelog entry
src/content/docs/docs/quickstart.md, src/content/docs/docs/reference/changelog.md
Adds an optional "Scaffold a Config" step to quickstart and a new 1.1.0 changelog release with added/fixed items.
React SDK detection scope documentation
src/content/docs/docs/reference/supported-scope.md
Splits the React SDK coverage row into hooks/HOC/provider entries and adds a "React SDK Detection" section on import-chain detection and manual-review handling.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects a broad post-v1 documentation update covering added commands, coverage changes, and accuracy fixes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/post-v1-updates

Comment @coderabbitai help to get the list of available commands.

@flaglint flaglint merged commit b147870 into main Jul 1, 2026
2 of 4 checks passed
@flaglint flaglint deleted the docs/post-v1-updates branch July 1, 2026 14:08

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/content/docs/docs/cli/completion.md`:
- Around line 55-59: The Fish completion install example in the completion docs
assumes ~/.config/fish/completions exists, which can break on a fresh machine.
Update the Fish section to add a mkdir -p step before running flaglint
completion fish, so the generated file can be redirected into an existing
completions directory.

In `@src/content/docs/docs/reference/supported-scope.md`:
- Line 12: Clarify the intro text in supported-scope.md so it is not
contradictory about React coverage. Update the section that mentions detection
coverage to explicitly state that React SDK hooks, HOC, and provider patterns
are an exception and are reported for manual review, while other non-Node SDKs
and non-LaunchDarkly providers remain out of scope. Use the existing
supported-scope intro wording as the place to revise.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7ae91bf4-d51e-4bd8-bc34-ecf95ffefaa1

📥 Commits

Reviewing files that changed from the base of the PR and between afe9113 and e5802c7.

📒 Files selected for processing (11)
  • astro.config.mjs
  • src/content/docs/docs/cli/audit.md
  • src/content/docs/docs/cli/completion.md
  • src/content/docs/docs/cli/configuration.md
  • src/content/docs/docs/cli/init.md
  • src/content/docs/docs/cli/migrate.md
  • src/content/docs/docs/cli/scan.md
  • src/content/docs/docs/cli/validate.md
  • src/content/docs/docs/quickstart.md
  • src/content/docs/docs/reference/changelog.md
  • src/content/docs/docs/reference/supported-scope.md

Comment on lines +55 to +59
### Fish

```bash
flaglint completion fish > ~/.config/fish/completions/flaglint.fish
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Create the Fish completions directory first.

~/.config/fish/completions/ is not guaranteed to exist, so this install command can fail on a fresh machine. Add a mkdir -p step before the redirect.

♻️ Proposed fix
 ### Fish
 
 ```bash
+mkdir -p ~/.config/fish/completions
 flaglint completion fish > ~/.config/fish/completions/flaglint.fish

</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion
### Fish

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/content/docs/docs/cli/completion.md` around lines 55 - 59, The Fish
completion install example in the completion docs assumes
~/.config/fish/completions exists, which can break on a fresh machine. Update
the Fish section to add a mkdir -p step before running flaglint completion fish,
so the generated file can be redirected into an existing completions directory.

- legacy `launchdarkly-node-server-sdk`

Browser SDKs, React SDKs, non-Node SDKs, and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.
React SDK hooks, HOC, and provider are detected and reported for manual review. Browser SDKs, non-Node SDKs, and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Clarify the React SDK exception in the intro.

This reads as contradictory today: it says non-Node SDKs do not appear in reports, but the next sentence says React SDK patterns are reported for manual review. Readers may come away unsure whether React entries are covered.

♻️ Proposed fix
-React SDK hooks, HOC, and provider are detected and reported for manual review. Browser SDKs, non-Node SDKs, and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.
+React SDK hooks, HOC, and provider are detected and reported for manual review. Other browser SDKs and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
React SDK hooks, HOC, and provider are detected and reported for manual review. Browser SDKs, non-Node SDKs, and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.
React SDK hooks, HOC, and provider are detected and reported for manual review. Other browser SDKs and non-LaunchDarkly providers are outside current detection coverage and do not appear in reports.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/content/docs/docs/reference/supported-scope.md` at line 12, Clarify the
intro text in supported-scope.md so it is not contradictory about React
coverage. Update the section that mentions detection coverage to explicitly
state that React SDK hooks, HOC, and provider patterns are an exception and are
reported for manual review, while other non-Node SDKs and non-LaunchDarkly
providers remain out of scope. Use the existing supported-scope intro wording as
the place to revise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants